package com.springmvc.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class UserController {

    @RequestMapping("/name")
    @ResponseBody
    public Object index(String name) {
        Map map = new HashMap();
        map.put("name",name);
        return map;
    }

}
